package ModelLayer;

import java.util.*;
/**
 * Write a description of class DVDCopy here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DVDCopy
{
    private String serialNumber;
    private String purchaseDate;
    private String purchasePrice;
    private boolean state;
    
    public DVDCopy(String serialNumber, String purchaseDate, String purchasePrice)
    {
        this.serialNumber = serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
        state = true;
    }
    
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }
    
    public void setPurchaseDate(String purchaseDate)
    {
        this.purchaseDate = purchaseDate;
    }
    
    public void setPurchasePrice(String purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }
    
    public void setState(boolean state)
    {
        this.state = state;
    }
    
    public String getSerialNumber()
    {
        return serialNumber;
    }
    
    public String getPurchaseDate()
    {
        return purchaseDate;
    }
    
    public String getPurchasePrice()
    {
        return purchasePrice;
    }
    
    public String getState()
    {
        String result="";
        if(state == true)
        {
            result = "Copy is available.";
        }
        else
        {
            result = "Copy is not available.";
        }
        return result;
    }
}